package name.hankc.spring;

import name.hankc.spring.bean.autowired.DogA;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class InjectComplexFieldAnnoApplication {

  public static void main(String[] args) throws Exception {
    ApplicationContext ctx = new AnnotationConfigApplicationContext("name.hankc.spring.bean.autowired");
    DogA dog = ctx.getBean(DogA.class);
    System.out.println(dog);
  }
}